package com.gdut.huayan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gdut.huayan.entity.dto.PageQuery;
import com.gdut.huayan.entity.po.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;


@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> listOrder(@Param("pageQuery") PageQuery pageQuery,@Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime,@Param("status") Integer status);

    //@Select("SELECT `id`,`money_amount`,`status` FROM `t_order` WHERE `status` != 1 AND `create_time` BETWEEN #{param1} AND #{param2}")
    List<Order> getAllOrder(@Param("status") Integer status, @Param("search") String search, @Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime,@Param("charityType")Integer isSuiXi);
}
